package com.heima.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author Xiao
 * @version 1.0
 * @description ap_article_config实体类
 * @date 2021/11/20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("ap_article_config")
public class ApArticleConfig implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;//主键
    private Long articleId;//文章ID
    private Integer isComment;//是否可评论
    private Integer isForward;//是否可转发
    private Integer isDown;//是否下架
    private Integer isDelete;//是否已删除

    public ApArticleConfig(Long articleId) {
        this.articleId = articleId;
        this.isComment = 1;
        this.isForward = 1;
        this.isDown = 0;
        this.isDelete = 0;
    }
}
